package com.minimalist.common.entity.basic.enums;

public class PermEnum{

    /**
     * 权限处理异常信息
     */
    public enum ErrorMsg{
        NONENTITY_PERM("权限不存在"),
        CONTAIN_CHILDREN("该权限下包含子项，请先删除子项"),
        ;
        private final String desc;

        ErrorMsg(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }

    /**
     * 权限类型
     */
    public enum PermType{
        MENU("M", "菜单"),
        BUTTON("B", "按钮"),
        ;
        private final String code;
        private final String desc;

        PermType(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public String getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }
    }

}
